using Voodoo.Sauce.Internal.Utils;

namespace Voodoo.Sauce.Core
{
	public class ProductReceivedInfo
	{
		public readonly string ConnectivityType;

		public readonly string DeviceLocal;

		public readonly LocalizedPriceInfo LocalizedPriceInfo;

		public readonly string ProductId;

		public readonly string ProductName;

		public readonly PurchaseProductType ProductType;

		public readonly string Token;

		public readonly string TransactionID;

		public readonly bool IsAvailable;

		public ProductReceivedInfo(string productId, PurchaseProductType productType, string transactionID, string isoCurrencyCode, double localizedPrice, string token, string productName, bool isAvailable)
		{
			ProductId = productId;
			ProductType = productType;
			TransactionID = transactionID;
			LocalizedPriceInfo = new LocalizedPriceInfo(localizedPrice, isoCurrencyCode);
			ConnectivityType = DeviceUtils.GetConnectivity();
			Token = token;
			ProductName = productName;
			DeviceLocal = DeviceUtils.GetLocale();
			IsAvailable = isAvailable;
		}
	}
}
